package com.simple.proxy.dynamic.jdk;

import com.simple.proxy.static01.Ticket;
import com.simple.proxy.static01.XiaoHei;

public class ProxyClient {
    public static void main(String[] args) {
        System.getProperties().put("sun.misc.ProxyGenerator.saveGeneratedFiles", "true");
        Ticket xiaoHei = ProxyUtil.getProxy(new XiaoHei());
        xiaoHei.buyTicket();
    }
}
